<template>
	<view>
		<view class="title">
			<uni-section :title="title" titleFontSize="17px" type="square" :color="color" bgdcolor="transparent">
			</uni-section>
			<view class="right">
				<text>更多</text>
				<uni-icons type="forward"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "title",
		props: {
			title: {
				type: String,
				default: 'title-name'
			},
			color: {
				type: String,
				default: '#FF4F5230'
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60rpx;

		.right {
			margin-right: 30rpx;
			align-self: center;
			color: grey;
		}
	}
</style>
